<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SystemSharp: InjectedProperties.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">SystemSharp
   &#160;<span id="projectnumber">0.3</span>
   </div>
   <div id="projectbrief">A system-level modeling framework for designing real-time embedded systems</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_injected_properties_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">InjectedProperties.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_injected_properties_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">using</span> System.Diagnostics;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">using</span> System.Diagnostics.Contracts;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">using</span> System.IO;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">using</span> System.Linq;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="keyword">using</span> System.Reflection;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="keyword">using</span> System.Runtime.CompilerServices;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">using</span> SystemSharp.Analysis.C2M;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">using</span> SystemSharp.Collections;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">using</span> SystemSharp.Common;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">using</span> SystemSharp.SysDOM;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">namespace </span>SystemSharp.Components</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html">   46</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">class </span><a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html">AttributeInjector</a></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;Type, List&lt;Attribute&gt;&gt; _typeAttrs =</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;Type, List&lt;Attribute&gt;&gt;();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;MethodBase, List&lt;Attribute&gt;&gt; _methodAttrs =</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;MethodBase, List&lt;Attribute&gt;&gt;();</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;Type, Dictionary&lt;string, List&lt;Attribute&gt;&gt;&gt; _methodByNameAttrs =</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;Type, Dictionary&lt;string, List&lt;Attribute&gt;&gt;&gt;();</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;object, Dictionary&lt;RuntimeMethodHandle, List&lt;Attribute&gt;&gt;&gt; _methodInstAttrs =</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;object, Dictionary&lt;RuntimeMethodHandle, List&lt;Attribute&gt;&gt;&gt;();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;PropertyInfo, List&lt;Attribute&gt;&gt; _propAttrs =</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;PropertyInfo, List&lt;Attribute&gt;&gt;();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;ParameterInfo, List&lt;Attribute&gt;&gt; _paramAttrs =</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;ParameterInfo, List&lt;Attribute&gt;&gt;();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> ConditionalWeakTable&lt;FieldInfo, List&lt;Attribute&gt;&gt; _fieldAttrs =</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <span class="keyword">new</span> ConditionalWeakTable&lt;FieldInfo, List&lt;Attribute&gt;&gt;();</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">private</span> <span class="keyword">static</span> List&lt;object&gt; _retainRefList = <span class="keyword">new</span> List&lt;object&gt;();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ae864a15c10851613521773e902eb605d">   72</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ae864a15c10851613521773e902eb605d">Inject</a>(Type type, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            var list = _typeAttrs.GetOrCreateValue(type);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            <span class="keywordflow">if</span> (!list.Contains(attribute))</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                list.Add(attribute);</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                _retainRefList.Add(type);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5ba32f640159f57cd2f9a6161d6e3f8a">   88</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5ba32f640159f57cd2f9a6161d6e3f8a">Inject</a>(MethodBase method, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            var list = _methodAttrs.GetOrCreateValue(method);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            list.Add(attribute);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                _retainRefList.Add(method);</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        }</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06c7dc1ba715d5f3248e4111a850f3b0">  103</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06c7dc1ba715d5f3248e4111a850f3b0">Inject</a>(FieldInfo field, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            var list = _fieldAttrs.GetOrCreateValue(field);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;            list.Add(attribute);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                _retainRefList.Add(field);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac084ebd6b2ec5cc306dfba149d4b601e">  118</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac084ebd6b2ec5cc306dfba149d4b601e">InjectOnce</a>(MethodBase method, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            var list = _methodAttrs.GetOrCreateValue(method);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <span class="keywordflow">if</span> (!list.Contains(attribute))</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                list.Add(attribute);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;                _retainRefList.Add(method);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;        }</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a6bb0301ecff51be0f2a57bffbf522aef">  135</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a6bb0301ecff51be0f2a57bffbf522aef">InjectMethodByNameAttr</a>(Type type, <span class="keywordtype">string</span> methodName, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            var dic = _methodByNameAttrs.GetOrCreateValue(type);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;            var list = dic.Get(methodName);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;            list.Add(attribute);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                _retainRefList.Add(type);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;        }</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a3ffe74da51382ad02f276b7dda2ebb10">  151</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a3ffe74da51382ad02f276b7dda2ebb10">InjectOnce</a>(MethodBase method, <span class="keywordtype">object</span> instance, Attribute attribute)</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        {</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            var dic = _methodInstAttrs.GetOrCreateValue(instance);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            var list = dic.Get(method.MethodHandle);</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            <span class="keywordflow">if</span> (!list.Contains(attribute))</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;                list.Add(attribute);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#aa06eeed078616acc5ee583947632fda5">  167</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#aa06eeed078616acc5ee583947632fda5">InjectEach</a>(Type type, <span class="keywordtype">string</span> methodName, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;            <span class="keywordflow">foreach</span> (MethodBase method <span class="keywordflow">in</span> type.GetMethods().Where(x =&gt; x.Name == methodName))</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;            {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                Inject(method, attribute, retainRef);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;        }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8740a947e0a93d0ef622d3f8160f1f4b">  182</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8740a947e0a93d0ef622d3f8160f1f4b">InjectEachCtor</a>(Type type, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <span class="keywordflow">foreach</span> (MethodBase method <span class="keywordflow">in</span> type.GetConstructors())</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            {</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                Inject(method, attribute, retainRef);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            }</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        }</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a48a801f69185db8266a97f2a7b9007de">  198</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a48a801f69185db8266a97f2a7b9007de">InjectToProperty</a>(Type type, <span class="keywordtype">string</span> propName, Attribute attribute, <span class="keywordtype">bool</span> retainRef = <span class="keyword">false</span>)</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            Contract.Requires(propName != null);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;            PropertyInfo pi = type.GetProperty(propName, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            var list = _propAttrs.GetOrCreateValue(pi);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <span class="keywordflow">if</span> (!list.Contains(attribute))</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;                list.Add(attribute);</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            <span class="keywordflow">if</span> (retainRef)</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                _retainRefList.Add(pi);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#abf7ae41518475ff05b65628eb92b12d9">  216</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#abf7ae41518475ff05b65628eb92b12d9">Inject</a>(ParameterInfo pi, Attribute attribute)</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;            Contract.Requires(pi != null);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            Contract.Requires(attribute != null);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            var list = _paramAttrs.GetOrCreateValue(pi);</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <span class="keywordflow">if</span> (!list.Contains(attribute))</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;                list.Add(attribute);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        }</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66888bf2ee085c5673576c8404373f02">  231</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66888bf2ee085c5673576c8404373f02">Inject</a>(FieldInfo fi, Attribute attribute)</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        {</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            Contract.Requires(fi != null);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            Contract.Requires(attribute != null);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;            _fieldAttrs.GetOrCreateValue(fi).Add(attribute);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a881fdbc47ad270f340ef8b764f86a59f">  245</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> IEnumerable&lt;Attribute&gt; <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a881fdbc47ad270f340ef8b764f86a59f">SelectAttributes</a>(IEnumerable&lt;object&gt; attrs, Type type)</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        {</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            <span class="keywordflow">return</span> attrs</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                .Where(a =&gt; type.IsAssignableFrom(a.GetType()))</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                .Cast&lt;Attribute&gt;();</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a0fb9fca3f2db7ae5dddfedfc3806ce0b">  258</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a0fb9fca3f2db7ae5dddfedfc3806ce0b">GetInjectedAttributes</a>(<span class="keyword">this</span> Type thisType, Type type)</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;        {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            var r1 = SelectAttributes(thisType.GetBaseTypeChain()</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                .SelectMany(t =&gt; _typeAttrs.GetOrCreateValue(t)), type);</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            var r2 = Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;            <span class="keywordflow">if</span> (thisType.IsGenericType &amp;&amp;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;                !thisType.IsGenericTypeDefinition)</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;            {</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;                r2 = SelectAttributes(thisType.GetGenericTypeDefinition().GetBaseTypeChain()</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;                .SelectMany(t =&gt; _typeAttrs.GetOrCreateValue(t)), type);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;            }</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keywordflow">return</span> r1.Concat(r2).ToArray();</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7cee1ddb6318ca5e86fbc193c5de2a95">  278</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7cee1ddb6318ca5e86fbc193c5de2a95">GetInjectedAttributes</a>(<span class="keyword">this</span> MethodBase method, Type type)</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            var r1 = _methodAttrs.GetOrCreateValue(method);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            var r2 = method.DeclaringType.GetBaseTypeChain().SelectMany(</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                t =&gt; _methodByNameAttrs.GetOrCreateValue(t).Get(method.Name));</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            var mi = method as MethodInfo;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            var r3 = method.IsGenericMethod ? </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                _methodAttrs.GetOrCreateValue(mi.GetGenericMethodDefinition()) : </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;                Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            var r4 = Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordflow">if</span> (method.DeclaringType.IsGenericType &amp;&amp;</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;                !method.DeclaringType.IsGenericTypeDefinition)</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            {</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;                var mtype = method.DeclaringType.GetGenericTypeDefinition();</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;                BindingFlags flags = BindingFlags.Default;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;                <span class="keywordflow">if</span> (method.CallingConvention.HasFlag(CallingConventions.HasThis))</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;                    flags |= BindingFlags.Instance;</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;                if (method.IsPublic)</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;                    flags |= BindingFlags.Public;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;                    flags |= BindingFlags.NonPublic;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                <span class="comment">//FIXME: Disambiguate by parameter types</span></div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;                MethodBase gmethod;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                <span class="keywordflow">if</span> (method.IsConstructor)</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                {</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                    flags |= BindingFlags.CreateInstance;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                    gmethod = mtype.GetConstructors(flags)</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                        .FirstOrDefault();</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                }</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                {</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;                    gmethod = mtype.GetMethods(flags)</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;                        .Where(m =&gt; m.Name == method.Name)</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;                        .FirstOrDefault();</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;                }</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;                <span class="keywordflow">if</span> (gmethod == null)</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                    r4 = Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                    r4 = GetInjectedAttributes(gmethod, type);</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;            }</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            <span class="keywordflow">return</span> SelectAttributes(r1.Concat(r2).Concat(r3).Concat(r4), type).ToArray();</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        }</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;</div>
<div class="line"><a name="l00330"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8246a4102a7b662f9aff85dc29ace04c">  330</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8246a4102a7b662f9aff85dc29ace04c">GetInjectedAttributes</a>(<span class="keyword">this</span> MethodBase method, <span class="keywordtype">object</span> instance, Type type)</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            List&lt;Attribute&gt; result = _methodInstAttrs.GetOrCreateValue(instance).Get(method.MethodHandle);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            <span class="keywordflow">return</span> SelectAttributes(result, type).ToArray();</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        }</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00342"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a787165467bb5c562432050a8e85e9e39">  342</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a787165467bb5c562432050a8e85e9e39">GetInjectedAttributes</a>(<span class="keyword">this</span> PropertyInfo pi, Type type)</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        {</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;            var r1 = SelectAttributes(_propAttrs.GetOrCreateValue(pi), type);</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            var r2 = Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            <span class="keywordflow">if</span> (pi.DeclaringType.IsGenericType &amp;&amp;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                !pi.DeclaringType.IsGenericTypeDefinition)</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;            {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;                var attrs = pi.DeclaringType.GetGenericTypeDefinition()</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                    .GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                    .Where(p =&gt; p.Name == pi.Name)</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                    .SelectMany(p =&gt; _propAttrs.GetOrCreateValue(p));</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                r2 = SelectAttributes(attrs, type);</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            }</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            <span class="keywordflow">return</span> r1.Concat(r2).ToArray();</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div>
<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a454afd18e15520a14a3d7aed60e8e326">  364</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a454afd18e15520a14a3d7aed60e8e326">GetInjectedAttributes</a>(<span class="keyword">this</span> ParameterInfo pi, Type type)</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        {</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            var result = _paramAttrs.GetOrCreateValue(pi);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            <span class="keywordflow">return</span> SelectAttributes(result, type).ToArray();</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        }</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;</div>
<div class="line"><a name="l00376"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a47d97bd820425ae64dfcae647f70bb75">  376</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a47d97bd820425ae64dfcae647f70bb75">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> Type thisType,</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;            Type type)</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        {</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;            IEnumerable&lt;Attribute&gt; result1 = SelectAttributes(thisType.GetCustomAttributes(<span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;            IEnumerable&lt;Attribute&gt; result2 = thisType.GetInjectedAttributes(type);</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).ToArray();</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;        }</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;</div>
<div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ab4159237d48b53a1ef4291a9d805250c">  390</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ab4159237d48b53a1ef4291a9d805250c">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> Type thisType, Type type)</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        {</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;            <span class="keywordflow">return</span> GetCustomAndInjectedAttributes(thisType, type).FirstOrDefault();</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        }</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div>
<div class="line"><a name="l00401"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a49579b90eb8e84fe6d19d91b57e03eb3">  401</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> Type thisType)</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;            <span class="keywordflow">return</span> (T)(object)GetCustomOrInjectedAttribute(thisType, typeof(T));</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        }</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5cfa722525e7b91da2a4c5b5635550fd">  412</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5cfa722525e7b91da2a4c5b5635550fd">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> MethodBase method,</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;            Type type)</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            IEnumerable&lt;Attribute&gt; result1 = SelectAttributes(Attribute.GetCustomAttributes(method, <span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;            IEnumerable&lt;Attribute&gt; result2 = method.GetInjectedAttributes(type);</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).ToArray();</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        }</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div>
<div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#adabaca5439cca6e9d358b77f57759c7e">  426</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T[] GetCustomAndInjectedAttributes&lt;T&gt;(<span class="keyword">this</span> MethodBase method)</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        {</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;            <span class="keywordflow">return</span> GetCustomAndInjectedAttributes(method, typeof(T)).Cast&lt;T&gt;().ToArray();</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;</div>
<div class="line"><a name="l00439"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7991f4baf1b68be291271827aa3066b8">  439</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7991f4baf1b68be291271827aa3066b8">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> MethodBase method,</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;            <span class="keywordtype">object</span> instance, Type type)</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        {</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;            IEnumerable&lt;Attribute&gt; result1 = SelectAttributes(Attribute.GetCustomAttributes(method, <span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            IEnumerable&lt;Attribute&gt; result2 = method.GetInjectedAttributes(type);</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;            IEnumerable&lt;Attribute&gt; result3 = instance == null ? Enumerable.Empty&lt;Attribute&gt;() : method.GetInjectedAttributes(instance, type);</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).Union(result3).ToArray();</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;        }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;</div>
<div class="line"><a name="l00454"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a2bacc98a45abb67f384153409b996584">  454</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a2bacc98a45abb67f384153409b996584">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> FieldInfo field, Type type)</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        {</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;            IEnumerable&lt;Attribute&gt; result1 = SelectAttributes(Attribute.GetCustomAttributes(field, <span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;            IEnumerable&lt;Attribute&gt; result2 = field.GetInjectedAttributes(type);</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).ToArray();</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;        }</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;</div>
<div class="line"><a name="l00467"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#adcebb1d9204cd4e0d2b1fc23e012c1b1">  467</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T[] GetCustomAndInjectedAttributes&lt;T&gt;(<span class="keyword">this</span> FieldInfo field)</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;        {</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;            <span class="keywordflow">return</span> GetCustomAndInjectedAttributes(field, typeof(T)).Cast&lt;T&gt;().ToArray();</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;        }</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;</div>
<div class="line"><a name="l00478"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a9bc9332ac7675b5e0fe39260d2473193">  478</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a9bc9332ac7675b5e0fe39260d2473193">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> MethodBase method, Type type)</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        {</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;            Attribute[] attrs = GetCustomAndInjectedAttributes(method, type);</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;            <span class="keywordflow">return</span> attrs.FirstOrDefault();</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        }</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;</div>
<div class="line"><a name="l00490"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a05b7050f32ad076fb0e1f8dd9ad44fa1">  490</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> MethodBase method) where T : Attribute</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        {</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;            Attribute[] attrs = GetCustomAndInjectedAttributes(method, typeof(T));</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;            <span class="keywordflow">return</span> (T)attrs.FirstOrDefault();</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        }</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;</div>
<div class="line"><a name="l00504"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8e1040e235c2e2ad0e611e58dfc398b4">  504</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8e1040e235c2e2ad0e611e58dfc398b4">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> MethodBase method, <span class="keywordtype">object</span> instance, Type type)</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        {</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;            Attribute[] attrs = GetCustomAndInjectedAttributes(method, instance, type);</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;            <span class="keywordflow">return</span> attrs.FirstOrDefault();</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        }</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;</div>
<div class="line"><a name="l00516"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a4ba516b0e0161f771ae57ba8dc372bb5">  516</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a4ba516b0e0161f771ae57ba8dc372bb5">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> FieldInfo field, Type type)</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        {</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;            Attribute[] attrs = GetCustomAndInjectedAttributes(field, type);</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;            <span class="keywordflow">return</span> attrs.FirstOrDefault();</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;        }</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;</div>
<div class="line"><a name="l00528"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a30a33066a3d9eca79615cd577370f8f3">  528</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> FieldInfo field) where T : Attribute</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        {</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;            Attribute[] attrs = GetCustomAndInjectedAttributes(field, typeof(T));</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;            <span class="keywordflow">return</span> (T)attrs.FirstOrDefault();</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        }</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;</div>
<div class="line"><a name="l00540"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a140b4e89fcf6823c6352bb877b1de47d">  540</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a140b4e89fcf6823c6352bb877b1de47d">HasCustomOrInjectedAttribute</a>(<span class="keyword">this</span> MethodBase method, Type type)</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;        {</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;            <span class="keywordflow">return</span> GetCustomOrInjectedAttribute(method, type) != null;</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;        }</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;</div>
<div class="line"><a name="l00551"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a0f658606c26b8b326a2f07f93d94823f">  551</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> HasCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> MethodBase method)</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        {</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            <span class="keywordflow">return</span> HasCustomOrInjectedAttribute(method, typeof(T));</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;        }</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;</div>
<div class="line"><a name="l00562"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06bf7002e9e88ab02760d661e26e1451">  562</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06bf7002e9e88ab02760d661e26e1451">HasCustomOrInjectedAttribute</a>(<span class="keyword">this</span> FieldInfo field, Type type)</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        {</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;            <span class="keywordflow">return</span> GetCustomOrInjectedAttribute(field, type) != null;</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;        }</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;</div>
<div class="line"><a name="l00573"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ad73e1e5e9d407fb309f7883698fd3d8b">  573</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> HasCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> FieldInfo field)</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        {</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;            <span class="keywordflow">return</span> HasCustomOrInjectedAttribute(field, typeof(T));</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;        }</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;</div>
<div class="line"><a name="l00584"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a985f74653dc12ea67074f2aa6623fd27">  584</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a985f74653dc12ea67074f2aa6623fd27">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> PropertyInfo pi, Type type)</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;        {</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;            IEnumerable&lt;Attribute&gt; result1 = SelectAttributes(Attribute.GetCustomAttributes(pi, <span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;            IEnumerable&lt;Attribute&gt; result2 = pi.GetInjectedAttributes(type);</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).ToArray();</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        }</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;</div>
<div class="line"><a name="l00597"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a57df5ea74a348683041a92ad082a8f29">  597</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a57df5ea74a348683041a92ad082a8f29">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> PropertyInfo pi, Type type)</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        {</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            <span class="keywordflow">return</span> GetCustomAndInjectedAttributes(pi, type).FirstOrDefault();</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        }</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;</div>
<div class="line"><a name="l00608"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ae85c641f9b056fceae6d4aa3206e608c">  608</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> PropertyInfo pi) where T : Attribute</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;        {</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;            <span class="keywordflow">return</span> (T)GetCustomOrInjectedAttribute(pi, typeof(T));</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        }</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;</div>
<div class="line"><a name="l00619"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#acc28d417b918c6385e2a98db6f952909">  619</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> HasCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> PropertyInfo pi) where T : Attribute</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;        {</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;            <span class="keywordflow">return</span> pi.GetCustomOrInjectedAttribute&lt;T&gt;() != null;</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;        }</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;</div>
<div class="line"><a name="l00630"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac4b453ec7c28e302d07aa0424a7cf726">  630</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac4b453ec7c28e302d07aa0424a7cf726">GetCustomAndInjectedAttributes</a>(<span class="keyword">this</span> ParameterInfo pi,</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;            Type type)</div>
<div class="line"><a name="l00632"></a><span class="lineno">  632</span>&#160;        {</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;            var result1 = SelectAttributes(pi.GetCustomAttributes(<span class="keyword">true</span>), type);</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;            var result2 = GetInjectedAttributes(pi, type);</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;            <span class="keywordflow">return</span> result1.Union(result2).ToArray();</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;        }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;</div>
<div class="line"><a name="l00644"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8874530851b4ae467e2400ba05f6d965">  644</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8874530851b4ae467e2400ba05f6d965">GetCustomOrInjectedAttribute</a>(<span class="keyword">this</span> ParameterInfo pi, Type type)</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        {</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;            <span class="keywordflow">return</span> GetCustomAndInjectedAttributes(pi, type).FirstOrDefault();</div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;        }</div>
<div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;</div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a21d536f391b770906281b619beaa9fae">  655</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetCustomOrInjectedAttribute&lt;T&gt;(<span class="keyword">this</span> ParameterInfo pi)</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;        {</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;            <span class="keywordflow">return</span> (T)(object)GetCustomOrInjectedAttribute(pi, typeof(T));</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        }</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;</div>
<div class="line"><a name="l00666"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66e6b7b37b3c39309ea93d4d71b9caf6">  666</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> Attribute[] <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66e6b7b37b3c39309ea93d4d71b9caf6">GetInjectedAttributes</a>(<span class="keyword">this</span> FieldInfo fi, Type type)</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;        {</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;            var r1 = SelectAttributes(_fieldAttrs.GetOrCreateValue(fi), type);</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;            var r2 = Enumerable.Empty&lt;Attribute&gt;();</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;            <span class="keywordflow">if</span> (fi.DeclaringType.IsGenericType &amp;&amp;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;                !fi.DeclaringType.IsGenericTypeDefinition)</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;            {</div>
<div class="line"><a name="l00673"></a><span class="lineno">  673</span>&#160;                var flags = fi.IsPublic ? BindingFlags.Public : BindingFlags.NonPublic;</div>
<div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;                <span class="keywordflow">if</span> (!fi.IsStatic)</div>
<div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;                    flags |= BindingFlags.Instance;</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;                var fig = fi.DeclaringType.GetGenericTypeDefinition().GetField(fi.Name, flags);</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;                r2 = SelectAttributes(_fieldAttrs.GetOrCreateValue(fig), type);</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;            }</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;            <span class="keywordflow">return</span> r1.Concat(r2).ToArray();</div>
<div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        }</div>
<div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;</div>
<div class="line"><a name="l00688"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7083f423c4e0e9293a58c63fa6601466">  688</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T[] GetAttributes&lt;T&gt;(<span class="keyword">this</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">IHasAttributes</a> obj) where T : Attribute</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;        {</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;            <span class="keywordflow">return</span> obj.GetAttributes()</div>
<div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;                .Where(a =&gt; a is T)</div>
<div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;                .Select(a =&gt; (T)a)</div>
<div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;                .ToArray();</div>
<div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;        }</div>
<div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;</div>
<div class="line"><a name="l00702"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a11f16cc9dd98ce3a57a98444c447d372">  702</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> T GetAttribute&lt;T&gt;(<span class="keyword">this</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">IHasAttributes</a> obj) where T : Attribute</div>
<div class="line"><a name="l00703"></a><span class="lineno">  703</span>&#160;        {</div>
<div class="line"><a name="l00704"></a><span class="lineno">  704</span>&#160;            <span class="keywordflow">return</span> GetAttributes&lt;T&gt;(obj).SingleOrDefault();</div>
<div class="line"><a name="l00705"></a><span class="lineno">  705</span>&#160;        }</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;</div>
<div class="line"><a name="l00713"></a><span class="lineno"><a class="line" href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7bd971df7c3c6ffd2c2418d6737de606">  713</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> HasAttribute&lt;T&gt;(<span class="keyword">this</span> <a class="code" href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">IHasAttributes</a> obj) where T : Attribute</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;        {</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;            <span class="keywordflow">return</span> GetAttribute&lt;T&gt;(obj) != null;</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;        }</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;        <span class="keyword">static</span> <a class="code" href="class_system_sharp_1_1_components_1_1_attribute_injector.html">AttributeInjector</a>()</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;        {</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;            Inject(typeof(<span class="keywordtype">string</span>),</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;                <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type.html">MapToIntrinsicType</a>(Meta.EIntrinsicTypes.String), </div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;                <span class="keyword">true</span>);</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;</div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;            Inject(typeof(StreamWriter),</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;                <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type.html">MapToIntrinsicType</a>(Meta.EIntrinsicTypes.File),</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;                <span class="keyword">true</span>);</div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;            Inject(typeof(AsyncVoidMethodBuilder),</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;                <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type.html">MapToIntrinsicType</a>(Meta.EIntrinsicTypes.IllegalRuntimeType),</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;                <span class="keyword">true</span>);</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;            <span class="comment">// bad: gets inherited by any derived class...</span></div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;            <span class="comment">//Inject(typeof(object),</span></div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;            <span class="comment">//    new MapToIntrinsicType(Meta.EIntrinsicTypes.IllegalRuntimeType),</span></div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;            <span class="comment">//    true);</span></div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;            <span class="comment">//Inject(typeof(string).GetMethod(&quot;Concat&quot;, new Type[] { typeof(object[]) }),</span></div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;            <span class="comment">//    new ConcatRewriter());</span></div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;            Inject(typeof(StreamReader),</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;                <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type.html">MapToIntrinsicType</a>(Meta.EIntrinsicTypes.File),</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;                <span class="keyword">true</span>);</div>
<div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;            <a class="code" href="class_system_sharp_1_1_components_1_1_concat_rewriter.html">ConcatRewriter</a> crw = <span class="keyword">new</span> <a class="code" href="class_system_sharp_1_1_components_1_1_concat_rewriter.html">ConcatRewriter</a>();</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;            <span class="keywordflow">foreach</span> (MethodInfo mi <span class="keywordflow">in</span> typeof(<span class="keywordtype">string</span>).GetMethods(BindingFlags.Public | BindingFlags.Static))</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;            {</div>
<div class="line"><a name="l00746"></a><span class="lineno">  746</span>&#160;                InjectOnce(mi, crw, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;            }</div>
<div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;</div>
<div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;            InjectEach(typeof(Console), <span class="stringliteral">&quot;Write&quot;</span>,</div>
<div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.Report), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;            InjectEach(typeof(Console), <span class="stringliteral">&quot;WriteLine&quot;</span>,</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.ReportLine), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;</div>
<div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;            InjectEach(typeof(Math), <span class="stringliteral">&quot;Abs&quot;</span>,</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;                <span class="keyword">new</span> MapToUnOp(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html">UnOp</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html#a8b4fb050e6c5427c7bc17a53c25ab924">Kind</a>.Abs), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;            InjectEach(typeof(Math), <span class="stringliteral">&quot;Sin&quot;</span>,</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;                <span class="keyword">new</span> MapToUnOp(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html">UnOp</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html#a8b4fb050e6c5427c7bc17a53c25ab924">Kind</a>.Sin), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;</div>
<div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;            InjectEach(typeof(Math), <span class="stringliteral">&quot;Cos&quot;</span>,</div>
<div class="line"><a name="l00762"></a><span class="lineno">  762</span>&#160;                <span class="keyword">new</span> MapToUnOp(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html">UnOp</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html#a8b4fb050e6c5427c7bc17a53c25ab924">Kind</a>.Cos), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;            InjectEach(typeof(Math), <span class="stringliteral">&quot;Sqrt&quot;</span>,</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;                <span class="keyword">new</span> MapToUnOp(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html">UnOp</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html#a8b4fb050e6c5427c7bc17a53c25ab924">Kind</a>.Sqrt), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;            InjectEach(typeof(Math), <span class="stringliteral">&quot;Sign&quot;</span>,</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.Sign), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;            InjectEach(typeof(<span class="keywordtype">object</span>), <span class="stringliteral">&quot;Equals&quot;</span>,</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;                <span class="keyword">new</span> MapToBinOp(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op.html">BinOp</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op.html#ab5bc58b1b90b8ea714fe042b2a0e63ef">Kind</a>.Eq), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;            InjectEach(typeof(<span class="keywordtype">object</span>), <span class="stringliteral">&quot;Equals&quot;</span>, <span class="keyword">new</span> SideEffectFree(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;            InjectEach(typeof(<span class="keywordtype">object</span>), <span class="stringliteral">&quot;GetHashCode&quot;</span>, <span class="keyword">new</span> SideEffectFree(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;            Inject(typeof(<span class="keywordtype">int</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">int</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;            Inject(typeof(uint).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(uint), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;            Inject(typeof(byte).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(byte), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;            Inject(typeof(sbyte).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(sbyte), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;            Inject(typeof(<span class="keywordtype">char</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">char</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;            Inject(typeof(<span class="keywordtype">short</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">short</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;            Inject(typeof(ushort).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(ushort), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;            Inject(typeof(<span class="keywordtype">bool</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">bool</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;            Inject(typeof(<span class="keywordtype">long</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">long</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;            Inject(typeof(ulong).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(ulong), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;            Inject(typeof(<span class="keywordtype">float</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">float</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;            Inject(typeof(<span class="keywordtype">double</span>).GetMethod(<span class="stringliteral">&quot;ToString&quot;</span>, <span class="keyword">new</span> Type[0]), <span class="keyword">new</span> TypeConversion(typeof(<span class="keywordtype">double</span>), typeof(<span class="keywordtype">string</span>)), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;            InjectEachCtor(typeof(StreamReader),</div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileOpenRead), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;            InjectEachCtor(typeof(StreamReader), <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;Close&quot;</span>,</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileClose), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00795"></a><span class="lineno">  795</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;Close&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00796"></a><span class="lineno">  796</span>&#160;</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;Read&quot;</span>,</div>
<div class="line"><a name="l00798"></a><span class="lineno">  798</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileRead), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;Read&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;</div>
<div class="line"><a name="l00801"></a><span class="lineno">  801</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;ReadLine&quot;</span>,</div>
<div class="line"><a name="l00802"></a><span class="lineno">  802</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileReadLine), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00803"></a><span class="lineno">  803</span>&#160;            InjectEach(typeof(StreamReader), <span class="stringliteral">&quot;ReadLine&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;            InjectEachCtor(typeof(StreamWriter),</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileOpenWrite), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;            InjectEachCtor(typeof(StreamWriter), <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;Close&quot;</span>,</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileClose), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;Close&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;Write&quot;</span>,</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileWrite), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;Write&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;WriteLine&quot;</span>,</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;                <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.FileWriteLine), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;            InjectEach(typeof(StreamWriter), <span class="stringliteral">&quot;WriteLine&quot;</span>, <span class="keyword">new</span> DoNotCallOnDecompilation(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;            Inject(typeof(Tuple&lt;,&gt;),</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;            InjectToProperty(typeof(Tuple&lt;,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;            InjectToProperty(typeof(Tuple&lt;,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;            Inject(typeof(Tuple&lt;,,&gt;),</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;            Inject(typeof(Tuple&lt;,,,&gt;),</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;get_Item4&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 3), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,&gt;), <span class="stringliteral">&quot;Item4&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;            Inject(typeof(Tuple&lt;,,,,&gt;),</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;get_Item4&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 3), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;get_Item5&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 4), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;Item4&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,&gt;), <span class="stringliteral">&quot;Item5&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;            Inject(typeof(Tuple&lt;,,,,,&gt;),</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item4&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 3), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item5&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 4), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;get_Item6&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 5), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item4&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item5&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,&gt;), <span class="stringliteral">&quot;Item6&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;            Inject(typeof(Tuple&lt;,,,,,,&gt;),</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item4&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 3), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item5&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 4), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item6&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 5), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;get_Item7&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 6), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item4&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item5&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item6&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,&gt;), <span class="stringliteral">&quot;Item7&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;            Inject(typeof(Tuple&lt;,,,,,,,&gt;),</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;                <span class="keyword">new</span> MapToIntrinsicType(Meta.EIntrinsicTypes.Tuple), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item1&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 0), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item2&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 1), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item3&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 2), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item4&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 3), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item5&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 4), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item6&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 5), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;get_Item7&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 6), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;            InjectMethodByNameAttr(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Rest&quot;</span>, <span class="keyword">new</span> MapToIntrinsicFunction(<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">IntrinsicFunction</a>.<a class="code" href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">EAction</a>.TupleSelect, 7), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item1&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item2&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item3&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item4&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item5&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item6&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Item7&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;            InjectToProperty(typeof(Tuple&lt;,,,,,,,&gt;), <span class="stringliteral">&quot;Rest&quot;</span>, <span class="keyword">new</span> DependentType(), <span class="keyword">true</span>);</div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;            ResolveDelegateCalls.Register();</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        }</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;    }</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;</div>
<div class="line"><a name="l00919"></a><span class="lineno"><a class="line" href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">  919</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">interface </span><a class="code" href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">IHasAttributes</a></div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;    {</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;        Attribute[] GetAttributes();</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;    }</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;}</div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a140b4e89fcf6823c6352bb877b1de47d"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a140b4e89fcf6823c6352bb877b1de47d">SystemSharp.Components.AttributeInjector.HasCustomOrInjectedAttribute</a></div><div class="ttdeci">static bool HasCustomOrInjectedAttribute(this MethodBase method, Type type)</div><div class="ttdoc">Returns true if the method or constructor has a pre-compiled or injected attribute of a certain type...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00540">InjectedProperties.cs:540</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a57df5ea74a348683041a92ad082a8f29"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a57df5ea74a348683041a92ad082a8f29">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this PropertyInfo pi, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00597">InjectedProperties.cs:597</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html">SystemSharp.Components.AttributeInjector</a></div><div class="ttdoc">Provides services for late injection of attributes to CLI objects. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00046">InjectedProperties.cs:46</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a8740a947e0a93d0ef622d3f8160f1f4b"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8740a947e0a93d0ef622d3f8160f1f4b">SystemSharp.Components.AttributeInjector.InjectEachCtor</a></div><div class="ttdeci">static void InjectEachCtor(Type type, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to each constructor of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00182">InjectedProperties.cs:182</a></div></div>
<div class="ttc" id="interface_system_sharp_1_1_components_1_1_i_has_attributes_html"><div class="ttname"><a href="interface_system_sharp_1_1_components_1_1_i_has_attributes.html">SystemSharp.Components.IHasAttributes</a></div><div class="ttdoc">An attribute container, i.e. an object which provides per-instance attributes. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00919">InjectedProperties.cs:919</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a8e1040e235c2e2ad0e611e58dfc398b4"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8e1040e235c2e2ad0e611e58dfc398b4">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this MethodBase method, object instance, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of a certain method or constructor on a specific ...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00504">InjectedProperties.cs:504</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a2bacc98a45abb67f384153409b996584"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a2bacc98a45abb67f384153409b996584">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this FieldInfo field, Type type)</div><div class="ttdoc">Returns all pre-compiled or injected attributes of a certain field. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00454">InjectedProperties.cs:454</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a48a801f69185db8266a97f2a7b9007de"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a48a801f69185db8266a97f2a7b9007de">SystemSharp.Components.AttributeInjector.InjectToProperty</a></div><div class="ttdeci">static void InjectToProperty(Type type, string propName, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a property with a certain name. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00198">InjectedProperties.cs:198</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a4ba516b0e0161f771ae57ba8dc372bb5"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a4ba516b0e0161f771ae57ba8dc372bb5">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this FieldInfo field, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of a certain field. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00516">InjectedProperties.cs:516</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_ac084ebd6b2ec5cc306dfba149d4b601e"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac084ebd6b2ec5cc306dfba149d4b601e">SystemSharp.Components.AttributeInjector.InjectOnce</a></div><div class="ttdeci">static void InjectOnce(MethodBase method, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a method, but only if the method is not yet associated with an equal instanc...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00118">InjectedProperties.cs:118</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a06bf7002e9e88ab02760d661e26e1451"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06bf7002e9e88ab02760d661e26e1451">SystemSharp.Components.AttributeInjector.HasCustomOrInjectedAttribute</a></div><div class="ttdeci">static bool HasCustomOrInjectedAttribute(this FieldInfo field, Type type)</div><div class="ttdoc">Returns true if the field has a pre-compiled or injected attribute of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00562">InjectedProperties.cs:562</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a454afd18e15520a14a3d7aed60e8e326"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a454afd18e15520a14a3d7aed60e8e326">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this ParameterInfo pi, Type type)</div><div class="ttdoc">Returns all attributes which were attached to a certain method parameter by attribute injection...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00364">InjectedProperties.cs:364</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_map_to_intrinsic_type.html">SystemSharp.Components.MapToIntrinsicType</a></div><div class="ttdoc">Indicates that the tagged class or interface is considered to be System#-intrinsic type...</div><div class="ttdef"><b>Definition:</b> <a href="_components_attributes_8cs_source.html#l00987">ComponentsAttributes.cs:987</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_ab4159237d48b53a1ef4291a9d805250c"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ab4159237d48b53a1ef4291a9d805250c">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this Type thisType, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00390">InjectedProperties.cs:390</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a985f74653dc12ea67074f2aa6623fd27"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a985f74653dc12ea67074f2aa6623fd27">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this PropertyInfo pi, Type type)</div><div class="ttdoc">Returns all pre-compiled or injected attribute of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00584">InjectedProperties.cs:584</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op_html_ab5bc58b1b90b8ea714fe042b2a0e63ef"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op.html#ab5bc58b1b90b8ea714fe042b2a0e63ef">SystemSharp.SysDOM.BinOp.Kind</a></div><div class="ttdeci">Kind</div><div class="ttdoc">Choice of binary operators. </div><div class="ttdef"><b>Definition:</b> <a href="_core_algebraic_8cs_source.html#l02723">CoreAlgebraic.cs:2723</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_aa06eeed078616acc5ee583947632fda5"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#aa06eeed078616acc5ee583947632fda5">SystemSharp.Components.AttributeInjector.InjectEach</a></div><div class="ttdeci">static void InjectEach(Type type, string methodName, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to each method with a particular name. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00167">InjectedProperties.cs:167</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_abf7ae41518475ff05b65628eb92b12d9"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#abf7ae41518475ff05b65628eb92b12d9">SystemSharp.Components.AttributeInjector.Inject</a></div><div class="ttdeci">static void Inject(ParameterInfo pi, Attribute attribute)</div><div class="ttdoc">Attaches an attribute to a method parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00216">InjectedProperties.cs:216</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a881fdbc47ad270f340ef8b764f86a59f"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a881fdbc47ad270f340ef8b764f86a59f">SystemSharp.Components.AttributeInjector.SelectAttributes</a></div><div class="ttdeci">static IEnumerable&lt; Attribute &gt; SelectAttributes(IEnumerable&lt; object &gt; attrs, Type type)</div><div class="ttdoc">Selects all attributes which are compatible with a certain type from an object enumeration. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00245">InjectedProperties.cs:245</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_bin_op.html">SystemSharp.SysDOM.BinOp</a></div><div class="ttdoc">Binary operator expression. </div><div class="ttdef"><b>Definition:</b> <a href="_core_algebraic_8cs_source.html#l02718">CoreAlgebraic.cs:2718</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_ac4b453ec7c28e302d07aa0424a7cf726"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ac4b453ec7c28e302d07aa0424a7cf726">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this ParameterInfo pi, Type type)</div><div class="ttdoc">Returns all pre-compiled and injected attributes of the method parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00630">InjectedProperties.cs:630</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_un_op_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html">SystemSharp.SysDOM.UnOp</a></div><div class="ttdoc">A unary operator expression. </div><div class="ttdef"><b>Definition:</b> <a href="_core_algebraic_8cs_source.html#l02474">CoreAlgebraic.cs:2474</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a6bb0301ecff51be0f2a57bffbf522aef"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a6bb0301ecff51be0f2a57bffbf522aef">SystemSharp.Components.AttributeInjector.InjectMethodByNameAttr</a></div><div class="ttdeci">static void InjectMethodByNameAttr(Type type, string methodName, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a method, specified by declaring type and method name. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00135">InjectedProperties.cs:135</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function_html_a762cc72094d2dc70761af21448c23880"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html#a762cc72094d2dc70761af21448c23880">SystemSharp.SysDOM.IntrinsicFunction.EAction</a></div><div class="ttdeci">EAction</div><div class="ttdoc">Function op-code </div><div class="ttdef"><b>Definition:</b> <a href="_intrinsic_functions_8cs_source.html#l00344">IntrinsicFunctions.cs:344</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_ae864a15c10851613521773e902eb605d"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#ae864a15c10851613521773e902eb605d">SystemSharp.Components.AttributeInjector.Inject</a></div><div class="ttdeci">static void Inject(Type type, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00072">InjectedProperties.cs:72</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a5cfa722525e7b91da2a4c5b5635550fd"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5cfa722525e7b91da2a4c5b5635550fd">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this MethodBase method, Type type)</div><div class="ttdoc">Returns all pre-compiled or injected attributes of a certain method or constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00412">InjectedProperties.cs:412</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_un_op_html_a8b4fb050e6c5427c7bc17a53c25ab924"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_un_op.html#a8b4fb050e6c5427c7bc17a53c25ab924">SystemSharp.SysDOM.UnOp.Kind</a></div><div class="ttdeci">Kind</div><div class="ttdoc">Choice of unary operators. </div><div class="ttdef"><b>Definition:</b> <a href="_core_algebraic_8cs_source.html#l02479">CoreAlgebraic.cs:2479</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function_html"><div class="ttname"><a href="class_system_sharp_1_1_sys_d_o_m_1_1_intrinsic_function.html">SystemSharp.SysDOM.IntrinsicFunction</a></div><div class="ttdoc">Describes a SysDOM-intrinsic function. </div><div class="ttdef"><b>Definition:</b> <a href="_intrinsic_functions_8cs_source.html#l00339">IntrinsicFunctions.cs:339</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a5ba32f640159f57cd2f9a6161d6e3f8a"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a5ba32f640159f57cd2f9a6161d6e3f8a">SystemSharp.Components.AttributeInjector.Inject</a></div><div class="ttdeci">static void Inject(MethodBase method, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a method. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00088">InjectedProperties.cs:88</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a7cee1ddb6318ca5e86fbc193c5de2a95"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7cee1ddb6318ca5e86fbc193c5de2a95">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this MethodBase method, Type type)</div><div class="ttdoc">Returns all attributes which were attached to a method or constructor by attribute injection...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00278">InjectedProperties.cs:278</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a7991f4baf1b68be291271827aa3066b8"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a7991f4baf1b68be291271827aa3066b8">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this MethodBase method, object instance, Type type)</div><div class="ttdoc">Returns all pre-compiled or injected attributes of a certain method or constructor on a specific inst...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00439">InjectedProperties.cs:439</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a8246a4102a7b662f9aff85dc29ace04c"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8246a4102a7b662f9aff85dc29ace04c">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this MethodBase method, object instance, Type type)</div><div class="ttdoc">Returns all attributes which were attached to a certain method or constructor for a specific instance...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00330">InjectedProperties.cs:330</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a06c7dc1ba715d5f3248e4111a850f3b0"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a06c7dc1ba715d5f3248e4111a850f3b0">SystemSharp.Components.AttributeInjector.Inject</a></div><div class="ttdeci">static void Inject(FieldInfo field, Attribute attribute, bool retainRef=false)</div><div class="ttdoc">Attaches an attribute to a field. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00103">InjectedProperties.cs:103</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a0fb9fca3f2db7ae5dddfedfc3806ce0b"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a0fb9fca3f2db7ae5dddfedfc3806ce0b">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this Type thisType, Type type)</div><div class="ttdoc">Returns all attributes which were attached to a type by attribute injection. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00258">InjectedProperties.cs:258</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_concat_rewriter_html"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_concat_rewriter.html">SystemSharp.Components.ConcatRewriter</a></div><div class="ttdoc">Rewrites .NET compiler-generated code for string concatenation to the SysDOM-intrinsic StringConcat o...</div><div class="ttdef"><b>Definition:</b> <a href="_concat_rewriter_8cs_source.html#l00042">ConcatRewriter.cs:42</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a47d97bd820425ae64dfcae647f70bb75"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a47d97bd820425ae64dfcae647f70bb75">SystemSharp.Components.AttributeInjector.GetCustomAndInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetCustomAndInjectedAttributes(this Type thisType, Type type)</div><div class="ttdoc">Returns all pre-compiled and injected attributes of a certain type. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00376">InjectedProperties.cs:376</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a787165467bb5c562432050a8e85e9e39"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a787165467bb5c562432050a8e85e9e39">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this PropertyInfo pi, Type type)</div><div class="ttdoc">Returns all attributes which were attached to a certain property. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00342">InjectedProperties.cs:342</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a8874530851b4ae467e2400ba05f6d965"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a8874530851b4ae467e2400ba05f6d965">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this ParameterInfo pi, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of the method parameter. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00644">InjectedProperties.cs:644</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a9bc9332ac7675b5e0fe39260d2473193"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a9bc9332ac7675b5e0fe39260d2473193">SystemSharp.Components.AttributeInjector.GetCustomOrInjectedAttribute</a></div><div class="ttdeci">static Attribute GetCustomOrInjectedAttribute(this MethodBase method, Type type)</div><div class="ttdoc">Returns a single pre-compiled or injected attribute of a certain method or constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00478">InjectedProperties.cs:478</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a66e6b7b37b3c39309ea93d4d71b9caf6"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66e6b7b37b3c39309ea93d4d71b9caf6">SystemSharp.Components.AttributeInjector.GetInjectedAttributes</a></div><div class="ttdeci">static Attribute[] GetInjectedAttributes(this FieldInfo fi, Type type)</div><div class="ttdoc">Returns all attributes which were attached to the field by attribute injection. </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00666">InjectedProperties.cs:666</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a66888bf2ee085c5673576c8404373f02"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a66888bf2ee085c5673576c8404373f02">SystemSharp.Components.AttributeInjector.Inject</a></div><div class="ttdeci">static void Inject(FieldInfo fi, Attribute attribute)</div><div class="ttdoc">Attaches an attribute to a field </div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00231">InjectedProperties.cs:231</a></div></div>
<div class="ttc" id="class_system_sharp_1_1_components_1_1_attribute_injector_html_a3ffe74da51382ad02f276b7dda2ebb10"><div class="ttname"><a href="class_system_sharp_1_1_components_1_1_attribute_injector.html#a3ffe74da51382ad02f276b7dda2ebb10">SystemSharp.Components.AttributeInjector.InjectOnce</a></div><div class="ttdeci">static void InjectOnce(MethodBase method, object instance, Attribute attribute)</div><div class="ttdoc">Attaches an attribute to a method of a certain instance, but only if the method is not yet associated...</div><div class="ttdef"><b>Definition:</b> <a href="_injected_properties_8cs_source.html#l00151">InjectedProperties.cs:151</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_bb5e995590685548b7e11478911ee7c3.html">SystemSharp-Google-SVN</a></li><li class="navelem"><a class="el" href="dir_8deefa4467a62b572b52d238d562b104.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_0e5a72156f8560bbc472a395da2569d6.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_9d3c30b4336bd92c64ccf0aeee487ace.html">SystemSharp</a></li><li class="navelem"><a class="el" href="dir_ad565bad6a3a698eff681060b32310b3.html">Meta</a></li><li class="navelem"><a class="el" href="_injected_properties_8cs.html">InjectedProperties.cs</a></li>
    <li class="footer">Generated on Thu Dec 26 2013 14:21:40 for SystemSharp by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
